package org.nmgyjt.springboot.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.nmgyjt.springboot.entity.admin.CsBusiness;
import org.nmgyjt.springboot.mapper.CsBusinessMapper;
import org.nmgyjt.springboot.service.ICsBusinessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class CsBusinessServiceImpl extends ServiceImpl<CsBusinessMapper, CsBusiness> implements ICsBusinessService {

    @Autowired
    private CsBusinessMapper mapper;

    @Override
    public List<CsBusiness> businessAllList() {
        return mapper.businessAllList();
    }

    @Override
    public CsBusiness findByBusinessId(String businessId) {
        return mapper.findByBusinessId(businessId);
    }


    @Override
    public List<CsBusiness> findByPone(String phone) {
        return mapper.findByPone(phone);
    }

    @Override
    public List<CsBusiness> findByPoneOrCodeNot(String authPhone) {
        return mapper.findByPoneOrCodeNot(authPhone);
    }

}
